home *** CD-ROM | disk | FTP | other *** search
/ Directorty Opus 5 - Magellan / Opus 5 - Magellan.iso / Archiv / DOPbt1.lha / 1 / OPUS-BAKFILES.txt < prev    next >
Text File  |  1996-06-13  |  3KB  |  71 lines

  1. ##
  2. ## $VER: OPUS.BAKfilestxt 1.0
  3. ##
  4. Better save than sorry I always say, so I kicked out a button in OPUS which
  5. will automagically make a backup of all the files I select from within
  6. OPUS. So instead of clicking all the important (config-)files and CLONE
  7. them manually, you choose ALL the files you want saved in one go,, and 
  8. click the bak-button.
  9.  
  10. The script will copy all your selected files to ram, and copy them back to
  11. your original directory with a .bak appended, leaving the original files as
  12. they were, but giving you a save backup file.
  13. The original dir will be re-read after the operation has finished.
  14.  
  15. Thus you will be able to every now and then backup those bloody important
  16. files, that are for some reason always corrupted when you really need them,
  17. and have no backup...
  18.  
  19. (ex: I edit a LOT in s:DIRECTORYOPUS.CFG, and, ofcourse, save the file a
  20. lot, but every now and then CONFIGOPUS runs crazy, and writes a 10 Mb 
  21. CFG file to disk...and the last saved CFG is, ofcourse, gone. Now I have a
  22. .bak file...phoei!)
  23.  
  24.  
  25. This is how to do it:
  26. choose a button/menu of your likes, and edit in the next lines:
  27. ---------------------------------------
  28.  
  29.  
  30. AmigaDOS    makedir ram:bak
  31. AmigaDOS    list >ram:bakscript {f}  lformat "copy %s%s ram:bak/%s.bak"
  32. AmigaDOS    execute ram:bakscript
  33. AmigaDOS    copy ram:bak/#? {s}
  34. AmigaDOS    delete ram:bak#? all force >nil:
  35.  
  36. FLAGS:
  37.  
  38. DO ALL FILES
  39. OUTPUT WINDOW
  40. RESCAN SOURCE
  41.  
  42. ---------------------------------------
  43.  
  44.  
  45. you will need makedir, list, execute, copy and delete in your searchpath.
  46.                        ^^^^ 
  47.                        Great is you know how to handle it...(-;
  48.  
  49. Let me know what you think, and if you use it (and why not...?).
  50.  
  51.  
  52.        ·······························································
  53.        .#.####..............................................####.#..#.
  54.        ##.#..#........._______....______......_______.......#..#.#..#.
  55.        .#.####......../      /....|     \.....\      .......####.####.
  56.        .#....#......./______/.....|______|.....\      .........#....#.
  57.        .#.####....../      /......|      |......\      .....####....#.
  58.        ............/....../.......|_____/........\_______.............
  59.        ...............................................................
  60.        .............ABC, THE CUTEST LAMER IN THE BUSINESS.............
  61.        .                                                             .
  62.        .                   Niels van \X/illigenburg                  .
  63.        .______                 Millingenhof 123                ______.
  64.        /      \             NL-1106 KH   AMSTERDAM            /      \
  65.        | O  O |                  Netherlands                  | O  O |
  66.        |  /\  |                    Europe                     |  /\  |
  67.        | \__/ |               +31 (0)20-6979932               | \__/ |
  68.        .\____/               FIDO -> 2:280/464.17              \____/.
  69.        .                          -> niels@aobh.xs4all.nl            .
  70.        ·······························································
  71.